/// records : [{"userId":1016,"account":"h_HskiajE","nickName":"小叮当","headImg":"","sex":"M","friendUserId":1015,"content":"这是一个好朋友","contents":null,"addType":"mobileSearch","status":0,"reason":null,"isBlack":false,"createTime":"2022-01-11 17:06:09","source":"","sourceName":null,"sourceUid":null,"uid":null,"id":426488}]
/// total : 1
/// size : 10
/// current : 1
/// orders : []
/// searchCount : true
/// pages : 1

class NewFriendModel {
  NewFriendModel({
      this.records, 
      this.total, 
      this.size, 
      this.current, 
      this.orders, 
      this.searchCount, 
      this.pages,});

  NewFriendModel.fromJson(dynamic json) {
    if (json['records'] != null) {
      records = [];
      json['records'].forEach((v) {
        records?.add(Records.fromJson(v));
      });
    }
    total = json['total'];
    size = json['size'];
    current = json['current'];
    if (json['orders'] != null) {
      orders = [];
      json['orders'].forEach((v) {
        // orders?.add(dynamic.fromJson(v));
      });
    }
    searchCount = json['searchCount'];
    pages = json['pages'];
  }
  List<Records>? records;
  int? total;
  int? size;
  int? current;
  List<dynamic>? orders;
  bool? searchCount;
  int? pages;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (records != null) {
      map['records'] = records?.map((v) => v.toJson()).toList();
    }
    map['total'] = total;
    map['size'] = size;
    map['current'] = current;
    if (orders != null) {
      map['orders'] = orders?.map((v) => v.toJson()).toList();
    }
    map['searchCount'] = searchCount;
    map['pages'] = pages;
    return map;
  }

}

/// userId : 1016
/// account : "h_HskiajE"
/// nickName : "小叮当"
/// headImg : ""
/// sex : "M"
/// friendUserId : 1015
/// content : "这是一个好朋友"
/// contents : null
/// addType : "mobileSearch"
/// status : 0
/// reason : null
/// isBlack : false
/// createTime : "2022-01-11 17:06:09"
/// source : ""
/// sourceName : null
/// sourceUid : null
/// uid : null
/// id : 426488

class Records {
  Records({
      this.userId, 
      this.account, 
      this.nickName, 
      this.headImg, 
      this.sex, 
      this.friendUserId, 
      this.content, 
      this.contents, 
      this.addType, 
      this.status, 
      this.reason, 
      this.isBlack, 
      this.createTime, 
      this.source, 
      this.sourceName, 
      this.sourceUid, 
      this.uid, 
      this.id,});

  Records.fromJson(dynamic json) {
    userId = json['userId'];
    account = json['account'];
    nickName = json['nickName'];
    headImg = json['headImg'];
    sex = json['sex'];
    friendUserId = json['friendUserId'];
    content = json['content'];
    contents = json['contents'];
    addType = json['addType'];
    status = json['status'];
    reason = json['reason'];
    isBlack = json['isBlack'];
    createTime = json['createTime'];
    source = json['source'];
    sourceName = json['sourceName'];
    sourceUid = json['sourceUid'];
    uid = json['uid'];
    id = json['id'];
  }
  int? userId;
  String? account;
  String? nickName;
  String? headImg;
  String? sex;
  int? friendUserId;
  String? content;
  dynamic contents;
  String? addType;
  int? status;
  dynamic reason;
  bool? isBlack;
  String? createTime;
  String? source;
  dynamic sourceName;
  dynamic sourceUid;
  dynamic uid;
  int? id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['userId'] = userId;
    map['account'] = account;
    map['nickName'] = nickName;
    map['headImg'] = headImg;
    map['sex'] = sex;
    map['friendUserId'] = friendUserId;
    map['content'] = content;
    map['contents'] = contents;
    map['addType'] = addType;
    map['status'] = status;
    map['reason'] = reason;
    map['isBlack'] = isBlack;
    map['createTime'] = createTime;
    map['source'] = source;
    map['sourceName'] = sourceName;
    map['sourceUid'] = sourceUid;
    map['uid'] = uid;
    map['id'] = id;
    return map;
  }

}